import socket

target_host = "10.1.1.147"
target_port = 8989 

#create a socket object
client = socket.socket(socket.AF_INET,  socket.SOCK_DGRAM)

#send some data to server
client.sendto("this data from udp_client", (target_host, target_port))

#recieve some data from server
data, addr = client.recvfrom(4096)

print data
